﻿using DAL;
using Entity;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BAL
{
    public class Control_Account
    {
        Data_Account var = new Data_Account();

        #region[Account_Insert]
        public void Account_Insert(Account data)
        {
            var.Account_Insert(data);
        }
        #endregion

        #region[Account_Update_Pass]
        public void Account_Update_Pass(Account data)
        {
            var.Account_Update_Pass(data);
        }
        #endregion

        #region[Account_Update_Info]
        public void Account_Update_Info(Account data)
        {
            var.Account_Update_Info(data);
        }
        #endregion

        #region[Account_CheckLogin]
        public bool Account_CheckLogin(string username, string pass)
        {
            return var.Account_CheckLogin(username, pass);
        }
        #endregion

        #region[Account_GetAll]
        public DataTable Account_GetByAll(Account data)
        {
            return var.Account_GetByAll(data);
        }
        #endregion
    }
}
